package com.yudean.esb.dao.erp;

import com.yudean.esb.domain.erp.ErpIdsArCustomers;
import com.yudean.esb.mapper.erp.ErpIdsArCustomersMapper;
import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Repository;

import javax.annotation.Resource;
import java.util.List;

@Repository
@Scope("prototype")
public class ErpIdsArCustomersDao {

    @Resource
    public ErpIdsArCustomersMapper erpIdsArCustomersMapper;

    public List<ErpIdsArCustomers> getErpIdsArCustomersByName(String customerName) {
        return erpIdsArCustomersMapper.getErpIdsArCustomersByName(customerName);
    }

    public int insertSelective(ErpIdsArCustomers record) {
        return erpIdsArCustomersMapper.insertSelective(record);
    }

    public int batchInsertErpIdsArCustomersData(List<ErpIdsArCustomers> erpIdsArCustomersList) {
        return erpIdsArCustomersMapper.batchInsertErpIdsArCustomersData(erpIdsArCustomersList);
    }
}
